package com.bidevalution.business.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.bidevalution.business.dto.OrgDto;
import com.bidevalution.business.service.SysUserService;
import com.qtp.auth.api.UserRightService;
import com.qtp.user.models.Org;
@Service
public class SysUserServiceImpl implements SysUserService{
	@Autowired
	private UserRightService userRightService;
	@Override
	public OrgDto getOrgByUserId(String userId) {
		Org org = userRightService.getOrgByUserID(userId);
		OrgDto orgDto = new OrgDto();
		orgDto.setOrgId(org.getOrgID());
		orgDto.setOrgName(org.getOrgName());
		return orgDto;
	}

}
